package com.beta.cust.bind.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.beta.cust.bind.api.response.CustDetailResp;
import com.beta.cust.bind.mapper.entity.CustInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;


/**
 * <p>
 * 客户信息表 Mapper 接口
 * </p>
 *
 * @author pcc
 * @since 2024-03-12
 */
public interface CustInfoMapper extends BaseMapper<CustInfo> {

   CustDetailResp selectByUserAndExternalId(@Param("userId") String userId, @Param("externalUserId") String externalUserId,@Param("corpId") String corpId);

   IPage<CustDetailResp> listPage(Page<CustDetailResp> page, @Param(Constants.WRAPPER) QueryWrapper<CustInfo> wapper);

   IPage<CustDetailResp> getLatestPage(Page<CustDetailResp> page, @Param(Constants.WRAPPER) QueryWrapper<CustInfo> wapper);
}
